﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace DotNetGPSTest
{
    public class MapSpec
    {
        public int m_tileWidthPixels;
        public int m_tileWidthMetres;
        public string m_folderPrefix = "";
        public string m_mapsFolder = "";
        public string m_fileExt = "";

        public MapSpec(int tileWidthPixels, int tileWidthMetres,
                       string folderPrefix, string mapsFolder,
                       string fileExt)
        {
            m_tileWidthPixels = tileWidthPixels;
            m_tileWidthMetres = tileWidthMetres;
            m_folderPrefix = folderPrefix;
            m_mapsFolder = mapsFolder;
            m_fileExt = fileExt;

        }

        public MapSpec()
		{

		}

        public double mpp()
        {
            if (m_tileWidthPixels == 0)
                throw (new DivideByZeroException());
            return m_tileWidthMetres/(double)m_tileWidthPixels;
        }


    }
}
